<script setup lang="ts">
import { useNum } from '@/composable/index'
const { num, add } = useNum()
</script>

<template>
  <h2>{{ num }}</h2>
  <button @click="add">点击++</button>
  <RouterView />
</template>

<style scoped></style>
